import request from '@/utils/request'

// 记账端首页汇总查询收入信息
export function collectIncomeRecordByLedger(data) {
  return request({
    url: '/bookkeeping/incomeExpenses/collectIncomeRecordByLedger',
    method: 'post',
    data
  })
}

// 记账端首页汇总查询支出信息
export function collectExpensesRecordByLedger(data) {
  return request({
    url: '/bookkeeping/incomeExpenses/collectExpensesRecordByLedger',
    method: 'post',
    data
  })
}

// 记账端首页汇总查询经营利润
export function queryOperatingProfit(data) {
  return request({
    url: '/bookkeeping/incomeExpenses/queryOperatingProfit',
    method: 'post',
    data
  })
}

// 记账端首页汇总查询总利润
export function queryAllProfit(data) {
  return request({
    url: '/bookkeeping/incomeExpenses/queryAllProfit',
    method: 'post',
    data
  })
}

// 记账端首页汇总查询流水账
export function queryJournal(data) {
  return request({
    url: '/bookkeeping/incomeExpenses/queryJournal',
    method: 'post',
    data
  })
}

// 记账端首页汇总查询固定资产
export function queryFixedAsset(data) {
  return request({
    url: '/bookkeeping/incomeExpenses/queryFixedAsset',
    method: 'post',
    data
  })
}

// 记账端首页汇总查询库存
export function collectStockInfoByDirection(data) {
  return request({
    url: '/bookkeeping/stock/collectStockInfoByDirection',
    method: 'post',
    data
  })
}

// 记账端首页汇总查询债权债务
export function collectCreditDebtInfoByDirection(data) {
  return request({
    url: '/bookkeeping/creditDebt/collectCreditDebtInfoByDirection',
    method: 'post',
    data
  })
}

// 债务债权到期提醒
export function creditDebtExpire() {
  return request({
    url: '/bookkeeping/creditDebt/creditDebtExpire',
    method: 'get'
  })
}

// 获取访问数
export function loginRecord() {
  return request({
    url: '/bookkeeping/base/loginRecord',
    method: 'post'
  })
}
